home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / localdefs.h < prev    next >
C/C++ Source or Header  |  2001-06-24  |  860b  |  30 lines

  1. /*
  2.  * Copyright 2000 by Paul Mattes.
  3.  *  Permission to use, copy, modify, and distribute this software and its
  4.  *  documentation for any purpose and without fee is hereby granted,
  5.  *  provided that the above copyright notice appear in all copies and that
  6.  *  both that copyright notice and this permission notice appear in
  7.  *  supporting documentation.
  8.  */
  9.  
  10. /*
  11.  *    localdefs.h
  12.  *        Local definitions for x3270.
  13.  *
  14.  *        This file contains definitions for environment-specific
  15.  *        facilities, such as memory allocation, I/O registration,
  16.  *        and timers.
  17.  */
  18.  
  19. /* Use X for this stuff. */
  20. #include <X11/Intrinsic.h>
  21.  
  22. #define Malloc(n)    XtMalloc(n)
  23. #define Free(p)        XtFree((XtPointer)p)
  24. #define Calloc(n, s)    XtCalloc(n, s)
  25. #define Realloc(p, s)    XtRealloc((XtPointer)p, s)
  26. #define NewString(s)    XtNewString(s)
  27.  
  28. #define Error(s)    XtError(s)
  29. #define Warning(s)    XtWarning(s)
  30.